Skip to content

test(wtr): remove console spy util#5512

Merged
wjhsf merged 81 commits intomasterfrom
wjh/no-spy-console
Sep 25, 2025
Merged

test(wtr): remove console spy util#5512
wjhsf merged 81 commits intomasterfrom
wjh/no-spy-console

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Sep 24, 2025

Details

We don't need a util when spyOn(console, 'error') works just fine. I didn't remove it entirely from the hydration tests because it's used more indirectly (and a lot more extensively) in those, so it's more tedious to swap everything out.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

wjhsf and others added 30 commits September 2, 2025 18:01
There's no setup/teardown needed, it's a single test, and WTR provides per-file encapsulation
working toward just importing and executing things, but not quite there yet
two env vars for the same goal is unnecessary
I think the last one was a concurrency related timeout,
which was previously addressed.
helper files shouldn't have side effects; all setup should be in the setup file
all tests are run in isolation
@wjhsf wjhsf requested a review from a team as a code owner September 24, 2025 20:13
@wjhsf wjhsf enabled auto-merge (squash) September 25, 2025 03:07
@wjhsf wjhsf merged commit 9e4d8af into master Sep 25, 2025
7 checks passed
@wjhsf wjhsf deleted the wjh/no-spy-console branch September 25, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants